<template>
  <div>
      <div class="select">
          <img src="img/jintou-left.png" alt="">
          <span>家具/装修</span>
          <input type="text" placeholder="搜索商户名/服务项目">
          <div class="topright">
              <img src="img/topsanjiao.png" alt="">
              <p>回顶部</p>
          </div>
      </div>
      <Decolist v-for="(v,i) in arr" :key="i" :Urlimg="v.Urlimg" :content="v.content"/>
      <img src="img/baike.png" alt="" class="baike">
    <div class="main">
        <h1>装修美图</h1>
        <div class="pic">
            <img src="img/deco-01.jpg" alt="">
            <img src="img/deco-02.jpg" alt="">
            <img src="img/deco-03.jpg" alt="">
            <img src="img/deco-04.jpg" alt="">
        </div>
        <h3>更多精彩图片&nbsp;&nbsp;&gt;</h3>
    </div>
    <div class="nav-con">
        <router-link to="/decorate01">装修公司</router-link>
        <router-link to="/decorate02">定制家具</router-link>
        <router-link to="/decorate03">装修建材</router-link>
        <router-link to="/decorate04">成品家具</router-link>
        <router-link to="/decorate05">甲醛服务</router-link>
        <router-link to="/decorate06">家居家纺</router-link>
        <router-link to="/decorate07">灯饰照明</router-link>
        <router-link to="/decorate08">家用电器</router-link>
        <router-link to="/decorate09">家居卖场</router-link>
    </div>
    <router-view/>
  </div>
</template>

<script>
import Decolist from "../compents/decolist.vue"
export default {
    data(){
        return{
            arr:[
                {Urlimg:"img/company.png",content:"装修公司"},
                {Urlimg:"img/dingzhijiaju.png",content:"定制家具"},
                {Urlimg:"img/jiaju.png",content:"家具家居"},
                {Urlimg:"img/jiancai.png",content:"建材"},
                {Urlimg:"img/jaiquan.png",content:"甲醛检测治理"},
                {Urlimg:"img/maichang.png",content:"家装卖场"},
                {Urlimg:"img/chuanglian.png",content:"窗帘"},
                {Urlimg:"img/xichenqi.png",content:"家庭保洁"},
                {Urlimg:"img/jiaju.png",content:"成品家具"},
                {Urlimg:"img/qiangzhi.png",content:"墙纸墙艺"},
                {Urlimg:"img/dengshi.png",content:"灯饰照明"},
                {Urlimg:"img/zhineng.png",content:"智能家具"},
                {Urlimg:"img/jaiyongdianqi.png",content:"家用电器"},
                {Urlimg:"img/cizhuan.png",content:"瓷砖"},
                {Urlimg:"img/more.png",content:"查看更多"},
            ]
        }
    },
    components:{
         Decolist
    }
}
</script>

<style scoped>
    *{
       padding: 0;
       margin: 0;
   }
   div{
       width: 98%;
       margin:0.1rem auto;
   }
    .select{
        height:0.46rem;
        line-height: 0.46rem;
        top: 0;
        font-size: 0.18rem;
    }
    .select img{
        width: 0.19rem;
        height: 0.19rem;
        vertical-align: middle;
        margin-right: 0.08rem;
    }
    input{
        width: 1.8rem;
        height: 0.3rem;
        margin-left: 0.1rem;
        background-color: #d3d3d3;
        border-radius: 0.5rem;
        text-align: center;
        border: 1px solid #d3d3d3;
    }
    .topright{
        width: 0.4rem;
        float: right;
        display: flex;
        margin-left: 0.12rem;
        flex-direction: column;
        line-height: 0.46rem;
        font-size: 0.1rem;
    }
    .topright img{
        width: 0.16rem;
        height: 0.12rem;
        margin-left: 0.1rem;
        margin-top: 0.1rem;
    }
    .topright p{
        margin-top: -0.1rem;
        height: 0.34rem;
    }
    .baike{
        width: 100%;
        height: 0.7rem;
        display: block;
    }
    .main{
        height: 2.5rem;
        width: 100%;
        margin: 0 auto;
    }   
    .main h1{
        margin-left: 0.12rem;
        line-height: 0.58rem;
        height: 0.58rem;
    }
    .main .pic{
        height: 1.5rem;
        display: flex;
        margin: 0 auto;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .main .pic img{
        width: 1.8rem;
        height: 0.75rem;
    }
    .main h3{
        color:#888;
        text-align: center;
        font-size: 0.16rem;
        line-height: 0.4rem;
    }
    .nav-con{
        width: 100%;
        height: 0.3rem;
        margin: 0 0;
        display: flex;
        flex-shrink: initial;
        overflow-x: scroll;
        line-height: 0.3rem;
    }
    .nav-con>a{
        height: 0.3rem;
        display: block;
        flex-shrink: 0;
        width:0.65rem;
        font-size: 0.16rem;
        margin:0 0.12rem;
        color: black;
        font-weight: bold;
    }
</style>